#!/bin/bash

[ -f /opt/factory_test/scripts_lib/common.sh ] && source /opt/factory_test/scripts_lib/common.sh

ARG=$1
if [ $ARG == "stop" ];then
	man_kill $0 glmark2-es2
	exit 0
fi

export DISPLAY=:0

titel "GLMARK OFFSCREEN"
glmark2-es2-drm --off-screen

titel "GLMARK DRM"
glmark2-es2-drm 

titel "GLMARK X11"
glmark2-es2

titel "GLMARK WAYLAND"
glmark2-es2-wayland

man_exit 2
